// import type { Recordable } from '@vben/types';
import { requestClient } from '#/api/request';

export async function getAirportList(data) {
  return requestClient.post('/screen/airport/getAllAirportList', data);
}
export async function getAirportById(data) {
  return requestClient.post('/screen/airport/getAirportById', data);
}
export async function takeoffToPoint(data) {
  return requestClient.post('/screen/fly/takeoffToPoint', data);
}
export async function flyToPoint(data) {
  return requestClient.post('/screen/fly/flyToPoint', data);
}
export async function editAirport(data) {
  return requestClient.post('/screen/airport/editAirport', data);
}
export async function returnHome(data) {
  return requestClient.post('/screen/fly/returnHome', data);
}

export async function liveStartPush(data) {
  return requestClient.post('/screen/fly/liveStartPush', data);
}
export async function flightAuthorityGrab(data) {
  return requestClient.post('/screen/fly/flightAuthorityGrab', data);
}
export async function drcModeEnter(data) {
  return requestClient.post('/screen/fly/drcModeEnter', data);
}
export async function stickControl(data) {
  return requestClient.post('/screen/fly/stickControl', data);
}
export async function droneControl(data) {
  return requestClient.post('/screen/fly/droneControl', data);
}
// 无人机监控
export async function getDroneList(data) {
  return requestClient.post('/screen/drone/getDroneList', data);
}
// 飞行数据
export async function getFlightData(data) {
  return requestClient.post('/screen/flight/getFlightData', data);
}
// 姿态大屏
export async function situationscreenInfo(data) {
  return requestClient.post('/screen/situationscreen/info', data);
}
// 获取任务列表
export async function situationscreentaskList(data) {
  return requestClient.post('/screen/situationscreen/taskList', data);
}
// 资源调度
export async function resourceScheduling(data) {
  return requestClient.post('/screen/situationscreen/resourceScheduling', data);
}
// 航线任务详情
export async function taskinfo(data) {
  return requestClient.post('/screen/task/info', data);
}
// 无人机监控
// 获取组织列表
export async function getDeviceList(data) {
  return requestClient.post('/screen/organization/getDeviceList', data);
}
// 获取组织树状
export async function getDeviceTreeList(data) {
  return requestClient.post('/screen/organization/list', data);
}
